# Bitmap
#
# Building by using BMake
#
# $ Bitmap: Makefile    Rev. 1.0.4    2013-03-12T23:12+08:00 $

SYSTEM=`uname`

.if (${SYSTEM} == "FreeBSD")
MAKE=make
.elif (${SYSTEM} == "Linux")
MAKE=bmake
.endif

RM=rm -rf

build:
	(cd src/bitmap; ${MAKE} build)
	./bin/sync_head.sh
	./bin/sync_libs.sh
	./bin/pkg_man.sh
	./bin/build_number.sh

clean:
	(cd src/bitmap; ${MAKE} clean)
	${RM} inc
	${RM} lib
	${RM} man

